class Solution:
    def containsDuplicate(self, nums: List[int]) -> bool:
        hashMap={}
        count=0
        n=len(nums)
        for i in range(n):
            if hashMap.get(nums[i]) is not None:
                count+=1
            hashMap[nums[i]]=i
        if count>=1:
            return True
        else:
            return False
        